
from sqlalchemy import Column,Integer,String,DateTime
from datetime import datetime

from lin.interface import InfoCrud as Base

class Class(Base):
    id = Column(Integer,primary_key=True,autoincrement=True)
    work_id = Column(String(20),nullable = False)
    name = Column(String(50),nullable = False)
    store_id = Column(String(30),default='E15')
    store_name = Column(String(30),default='弘阳')
    shift = Column(String(20),default='早')
    part = Column(String(20))
    class_date = Column(DateTime,default=datetime.date(datetime.now()).isoformat())

